﻿using AutoMapper;
using ContentmanagementBase.Domain;
using ContentmanagementBaseRead.API.Dtos;

namespace ContentmanagementBaseRead.API.AutomapperFiles
{
    public class AutomapperProFiles : Profile
    {
        public AutomapperProFiles()
        {
            // 轮播图模型到DTO的映射
            CreateMap<CarouelChartModel, CarouelChartDtos>();
            
            // 科室管理模型到DTO的映射
            CreateMap<DepartmentManagementModel, DepartmentDtos>();
            
            // 医院管理模型到DTO的映射
            CreateMap<HospitalManagementModel, HospitalListDto>();
            
            // 疾病科普模型到DTO的映射
            CreateMap<PopularScienceDiseaseModel, PopularizationListDto>();
            
            // 药店管理模型到DTO的映射
            CreateMap<PharmacyManagementModel, DrugstoreListDto>();
            
            // 问题管理模型到DTO的映射
            CreateMap<ProblemManagementModel, ProblemListDto>();
            
        }
    }
}
